<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">


  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/blog/images/logo.svg" color="#222">

<link rel="stylesheet" href="/blog/css/main.css">



<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.2/css/all.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.1.1/animate.min.css">

<script class="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"littlefxc.github.io","root":"/blog/","images":"/blog/images","scheme":"Mist","version":"8.2.2","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":false,"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"},"path":"/blog/search.xml","localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false}};
  </script>
<meta name="description" content="1 前言RabbitMQ（一）：RabbitMQ快速入门 RabbitMQ基础概念详细介绍      2 AMQP协议中间的几个重要概念：下图是AMQP的协议模型：  正如图中所看到的，AMQP协议模型有三部分组成：生产者、消费者和服务端。 生产者是投递消息的一方，首先连接到Server，建立一个连接，开启一个信道；然后生产者声明交换器和队列，设置相关属性，并通过路由键将交换器和队列进行绑定。同理">
<meta property="og:type" content="article">
<meta property="og:title" content="RabbitMQ实战-初识RabbitMQ核心概念(12)">
<meta property="og:url" content="http://littlefxc.github.io/2021/01/25/RabbitMQ%E5%AE%9E%E6%88%98-%E5%88%9D%E8%AF%86RabbitMQ%E6%A0%B8%E5%BF%83%E6%A6%82%E5%BF%B5-12/index.html">
<meta property="og:site_name" content="一年春又来">
<meta property="og:description" content="1 前言RabbitMQ（一）：RabbitMQ快速入门 RabbitMQ基础概念详细介绍      2 AMQP协议中间的几个重要概念：下图是AMQP的协议模型：  正如图中所看到的，AMQP协议模型有三部分组成：生产者、消费者和服务端。 生产者是投递消息的一方，首先连接到Server，建立一个连接，开启一个信道；然后生产者声明交换器和队列，设置相关属性，并通过路由键将交换器和队列进行绑定。同理">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_1.png">
<meta property="og:image" content="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_2.png">
<meta property="og:image" content="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_3.png">
<meta property="og:image" content="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_4.png">
<meta property="og:image" content="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_5.png">
<meta property="og:image" content="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_6.png">
<meta property="og:image" content="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_7.png">
<meta property="og:image" content="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_11.png">
<meta property="og:image" content="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_8.png">
<meta property="og:image" content="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_9.png">
<meta property="og:image" content="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_10.png">
<meta property="article:published_time" content="2021-01-25T13:44:01.000Z">
<meta property="article:modified_time" content="2021-03-25T13:15:48.980Z">
<meta property="article:author" content="一年春又来">
<meta property="article:tag" content="mq">
<meta property="article:tag" content="rabbitmq">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_1.png">


<link rel="canonical" href="http://littlefxc.github.io/2021/01/25/RabbitMQ%E5%AE%9E%E6%88%98-%E5%88%9D%E8%AF%86RabbitMQ%E6%A0%B8%E5%BF%83%E6%A6%82%E5%BF%B5-12/">


<script class="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>
<title>RabbitMQ实战-初识RabbitMQ核心概念(12) | 一年春又来</title>
  




  <noscript>
  <style>
  body { margin-top: 2rem; }

  .use-motion .menu-item,
  .use-motion .sidebar,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header {
    visibility: visible;
  }

  .use-motion .header,
  .use-motion .site-brand-container .toggle,
  .use-motion .footer { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle,
  .use-motion .custom-logo-image {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line {
    transform: scaleX(1);
  }

  .search-pop-overlay, .sidebar-nav { display: none; }
  .sidebar-panel { display: block; }
  </style>
</noscript>

<link rel="alternate" href="/blog/atom.xml" title="一年春又来" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/blog/" class="brand" rel="start">
      <i class="logo-line"></i>
      <h1 class="site-title">一年春又来</h1>
      <i class="logo-line"></i>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu">
        <li class="menu-item menu-item-home"><a href="/blog/" rel="section"><i class="home                          //首页 fa-fw"></i>首页</a></li>
        <li class="menu-item menu-item-archives"><a href="/blog/archives/" rel="section"><i class="archive          //归档 fa-fw"></i>归档</a></li>
        <li class="menu-item menu-item-categories"><a href="/blog/categories/" rel="section"><i class="th           //分类 fa-fw"></i>分类</a></li>
        <li class="menu-item menu-item-tags"><a href="/blog/tags/" rel="section"><i class="tags                     //标签 fa-fw"></i>标签</a></li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup"><div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off" maxlength="80"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close" role="button">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div class="search-result-container no-result">
  <div class="search-result-icon">
    <i class="fa fa-spinner fa-pulse fa-5x"></i>
  </div>
</div>

    </div>
  </div>

</div>
        
  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#1-%E5%89%8D%E8%A8%80"><span class="nav-text">1 前言</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#2-AMQP%E5%8D%8F%E8%AE%AE%E4%B8%AD%E9%97%B4%E7%9A%84%E5%87%A0%E4%B8%AA%E9%87%8D%E8%A6%81%E6%A6%82%E5%BF%B5%EF%BC%9A"><span class="nav-text">2 AMQP协议中间的几个重要概念：</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#3-%E5%B8%B8%E7%94%A8%E4%BA%A4%E6%8D%A2%E5%99%A8"><span class="nav-text">3 常用交换器</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#3-1-Direct-Exchange"><span class="nav-text">3.1 Direct Exchange</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-2-Topic-Exchange"><span class="nav-text">3.2 Topic Exchange</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-3-Fanout-Exchange"><span class="nav-text">3.3 Fanout Exchange</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-4-Headers-Exchange"><span class="nav-text">3.4 Headers Exchange</span></a></li></ol></li></ol></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">一年春又来</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap site-overview-item animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/blog/archives/">
        
          <span class="site-state-item-count">184</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/blog/categories/">
          
        <span class="site-state-item-count">35</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/blog/tags/">
          
        <span class="site-state-item-count">115</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



        </div>
      </div>
    </div>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top" role="button">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://littlefxc.github.io/2021/01/25/RabbitMQ%E5%AE%9E%E6%88%98-%E5%88%9D%E8%AF%86RabbitMQ%E6%A0%B8%E5%BF%83%E6%A6%82%E5%BF%B5-12/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/blog/images/avatar.gif">
      <meta itemprop="name" content="一年春又来">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="一年春又来">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          RabbitMQ实战-初识RabbitMQ核心概念(12)
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2021-01-25 21:44:01" itemprop="dateCreated datePublished" datetime="2021-01-25T21:44:01+08:00">2021-01-25</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-03-25 21:15:48" itemprop="dateModified" datetime="2021-03-25T21:15:48+08:00">2021-03-25</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/blog/categories/mq/" itemprop="url" rel="index"><span itemprop="name">mq</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <h1 id="1-前言"><a href="#1-前言" class="headerlink" title="1 前言"></a>1 前言</h1><p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/sgh1023/p/11217017.html">RabbitMQ（一）：RabbitMQ快速入门</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/williamjie/p/9481774.html">RabbitMQ基础概念详细介绍</a></p>
<p><img src="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_1.png" alt="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_1.png"></p>
<p><img src="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_2.png" alt="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_2.png"></p>
<p><img src="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_3.png" alt="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_3.png"></p>
<p><img src="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_4.png" alt="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_4.png"></p>
<p><img src="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_5.png" alt="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_5.png"></p>
<h1 id="2-AMQP协议中间的几个重要概念："><a href="#2-AMQP协议中间的几个重要概念：" class="headerlink" title="2 AMQP协议中间的几个重要概念："></a>2 AMQP协议中间的几个重要概念：</h1><p>下图是AMQP的协议模型：</p>
<p><img src="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_6.png" alt="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_6.png"></p>
<p>正如图中所看到的，AMQP协议模型有三部分组成：生产者、消费者和服务端。</p>
<p>生产者是投递消息的一方，首先连接到Server，建立一个连接，开启一个信道；然后生产者声明交换器和队列，设置相关属性，并通过路由键将交换器和队列进行绑定。同理，消费者也需要进行建立连接，开启信道等操作，便于接收消息。</p>
<p>接着生产者就可以发送消息，发送到服务端中的虚拟主机，虚拟主机中的交换器根据路由键选择路由规则，然后发送到不同的消息队列中，这样订阅了消息队列的消费者就可以获取到消息，进行消费。</p>
<p>最后还要关闭信道和连接。</p>
<ul>
<li>Server：又称Broker。接收客户端的连接，实现AMQP实体服务。</li>
<li>Connection：连接，应用程序与Server的网络连接，TCP连接。</li>
<li>Channel：信道，消息读写（几乎所有操作）等操作在信道中进行。客户端可以建立多个信道，每个信道代表一个会话任务。</li>
<li>Message：消息，应用程序和服务器之间传送的数据，消息可以非常简单，也可以很复杂。有Properties和Body组成。Properties为外包装，可以对消息进行修饰，比如消息的优先级、延迟等高级特性；Body就是消息体内容。</li>
<li>Virtual Host：虚拟主机，用于逻辑隔离。一个虚拟主机里面可以有若干个Exchange和Queue，同一个虚拟主机里面不能有相同名称的Exchange或Queue。</li>
<li>Exchange：交换器，接收消息，按照路由规则将消息路由到一个或者多个队列。如果路由不到，或者返回给生产者，或者直接丢弃。RabbitMQ常用的交换器常用类型有direct、topic、fanout、headers四种，后面详细介绍。</li>
<li>Binding：绑定，交换器和消息队列之间的虚拟连接，绑定中可以包含一个或者多个RoutingKey。</li>
<li>RoutingKey：路由键，生产者将消息发送给交换器的时候，会发送一个RoutingKey，用来指定<strong>路由规则</strong>，这样交换器就知道把消息发送到哪个队列。路由键通常为一个“.”分割的字符串，例如“com.rabbitmq”。</li>
<li>Queue：消息队列，用来保存消息，供消费者消费。</li>
</ul>
<blockquote>
<p>我们完全可以直接使用 Connection 就能完成信道的工作，为什么还要引入信道呢?</p>
</blockquote>
<blockquote>
<p>试想这样一个场景， 一个应用程序中有很多个线程需要从 RabbitMQ 中消费消息，或者生产消息，那么必然需要建立很多个 Connection，也就是许多个 TCP 连接。然而对于操作系统而言，建立和销毁 TCP 连接是非常昂贵的开销，如果遇到使用高峰，性能瓶颈也随之显现。 RabbitMQ 采用 TCP 连接复用的方式，不仅可以减少性能开销，同时也便于管理 。</p>
</blockquote>
<p>RabbitMQ是基于AMQP协议实现的，其结构如下图所示，和AMQP协议简直就是一模一样。</p>
<p><img src="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_7.png" alt="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_7.png"></p>
<p><img src="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_11.png" alt="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_11.png"></p>
<h1 id="3-常用交换器"><a href="#3-常用交换器" class="headerlink" title="3 常用交换器"></a>3 <strong>常用交换器</strong></h1><p>RabbitMQ常用的交换器类型有direct、topic、fanout、headers四种。</p>
<h2 id="3-1-Direct-Exchange"><a href="#3-1-Direct-Exchange" class="headerlink" title="3.1 Direct Exchange"></a>3.1 Direct Exchange</h2><p>该类型的交换器将所有发送到该交换器的消息被转发到RoutingKey指定的队列中，也就是说路由到BindingKey和RoutingKey完全匹配的队列中。</p>
<p><img src="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_8.png" alt="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_8.png"></p>
<h2 id="3-2-Topic-Exchange"><a href="#3-2-Topic-Exchange" class="headerlink" title="3.2 Topic Exchange"></a>3.2 Topic Exchange</h2><p>该类型的交换器将所有发送到Topic Exchange的消息被转发到所有RoutingKey中指定的Topic的队列上面。</p>
<p>Exchange将RoutingKey和某Topic进行模糊匹配，其中“<em>”用来匹配一个词，“#”用于匹配一个或者多个词。例如“com.#”能匹配到“com.rabbitmq.oa”和“com.rabbitmq”；而”login.</em>“只能匹配到“com.rabbitmq”。</p>
<p><img src="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_9.png" alt="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_9.png"></p>
<h2 id="3-3-Fanout-Exchange"><a href="#3-3-Fanout-Exchange" class="headerlink" title="3.3 Fanout Exchange"></a>3.3 Fanout Exchange</h2><p>该类型不处理路由键，会把所有发送到交换器的消息路由到所有绑定的队列中。优点是转发消息最快，性能最好。</p>
<p><img src="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_10.png" alt="https://gitee.com/littlefxc/oss/raw/master/images/rabbitmq_11_10.png"></p>
<h2 id="3-4-Headers-Exchange"><a href="#3-4-Headers-Exchange" class="headerlink" title="3.4 Headers Exchange"></a>3.4 Headers Exchange</h2><p>该类型的交换器不依赖路由规则来路由消息，而是根据消息内容中的headers属性进行匹配。headers类型交换器性能差，在实际中并不常用。</p>

    </div>

    
    
    

    <footer class="post-footer">
          <div class="post-tags">
              <a href="/blog/tags/mq/" rel="tag"># mq</a>
              <a href="/blog/tags/rabbitmq/" rel="tag"># rabbitmq</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/blog/2021/01/25/Java%E5%A4%9A%E7%BA%BF%E7%A8%8BJUC%E5%8E%9F%E5%AD%90%E7%B1%BB%E4%B9%8B-AtomicLong%E5%8E%9F%E5%AD%90%E7%B1%BB/" rel="prev" title="Java多线程JUC原子类之 AtomicLong原子类">
                  <i class="fa fa-chevron-left"></i> Java多线程JUC原子类之 AtomicLong原子类
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/blog/2021/01/25/RabbitMQ%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E4%B8%8E%E6%8E%A7%E5%88%B6%E5%8F%B0%E8%AF%A6%E8%A7%A3-13/" rel="next" title="RabbitMQ环境搭建与控制台详解(13)">
                  RabbitMQ环境搭建与控制台详解(13) <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>







<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      const activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      const commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>
</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">一年春又来</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/mist/" class="theme-link" rel="noopener" target="_blank">NexT.Mist</a> 强力驱动
  </div>

    </div>
  </footer>

  
  <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
<script src="/blog/js/utils.js"></script><script src="/blog/js/motion.js"></script><script src="/blog/js/schemes/muse.js"></script><script src="/blog/js/next-boot.js"></script>

  
<script src="/blog/js/local-search.js"></script>






  





</body>
</html>
